<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\ProjectMilestone
 *
 * @property integer $id
 * @property integer $project_id
 * @property string $mil_time
 * @property string $mil_desc
 * @property string $deleted_at
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\Project $toProject
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereProjectId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereMilTime($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereMilDesc($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\ProjectMilestone whereUpdatedAt($value)
 */
class ProjectMilestone extends Model {

	//表名
    protected $table = 'project_milestone' ;
    use SoftDeletes;

    /** 关联项目表 */
    public function toProject()
    {
        return $this->belongsTo('App\Project' , 'project_id') ;
    }

}
